﻿using STHPMS1.ICore.I_Entity.Info;
using STHPMS1.ICore.I_Entity.Stmpms1;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;

namespace STHPMS1.ICore.I_BLL.Bus
{
    public interface IDr_Stru_MateBill : IBll
    {
        void Save<T>(T entity) 
            where T:class ,IDr_Stru_Mate;

        void Remove(IDr_Stru_Mate entity);

        IEnumerable<T> Get<T>(Expression<Func<T, bool>> predicate, IPagingInfo info)
            where T : class, IDr_Stru_Mate;


        /// <summary>
        /// 通过材料类别获取层次，对应的材料，价格
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="stru_type"></param>
        /// <returns></returns>
        IEnumerable<T> GetMaterialByType<T>(string stru_type) where T : class, IDr_Stru_Mate;
    }
}
